package com.yami.shop.security.common.model;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author yami
 */
@Data
@Schema(description = "更新密码参数")
public class UpdatePasswordDto {

    @NotBlank(message="旧密码不能为空")
    @Size(max = 50)
    @Schema(description = "旧密码",required=true)
    private String password;

    @NotBlank(message="新密码不能为空")
    @Size(max = 50)
    @Schema(description = "新密码",required=true)
    private String newPassword;
}
